package com.xm.controller;


import com.xm.common.utils.JSONResult;
import com.xm.pojo.Users;
import com.xm.service.BgmService;
import com.xm.service.UserService;
import com.xm.vo.UserVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.io.IOUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.util.UUID;

@RestController()
@Api(value = "背景音乐业务的接口",tags = {"背景音乐业务的controller"})
@RequestMapping("/bgm")
public class BgmController extends BasicController{

    @Autowired
    private BgmService bgmService;

    @ApiOperation(value = "查询背景音乐",notes = "查询背景音乐的接口")
    @PostMapping("/list")
    public JSONResult query() throws Exception{
        return  JSONResult.ok(bgmService.queryBgmList());
    }


}
